package com.wlhse.controller;



import com.wlhse.service.ProblemImportServiceV2;
import com.wlhse.util.R;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.ArrayList;

@RestController("ProblemControllerV2")
@RequestMapping("/api/v1")
public class ProblemControllerV2 {

    @Resource(name = "ProblemImportDaoV2")
    private ProblemImportServiceV2 problemImportServiceV2;

    @RequestMapping(value = "/problems_response/{usr}", method = RequestMethod.PUT, produces = "application/json; charset=utf-8")
    public R updateResponsePersonID(@RequestBody ArrayList<Integer> problemIds, @PathVariable("usr")int usr) { ;
        return problemImportServiceV2.updateResponsePersonID(problemIds,usr);
    }
}
